#ifndef REQUETE_H
#define REQUETE_H

#include "include.h"

class Requete
{
public:
    Requete(QString m_query);
    bool isFavoris() const { return favoris; }
    QString getName() const { return nom; }
    QDateTime getDate() const { return date; }
    QString getQuery() const { return query; }
    void setFavoris(bool b) { favoris=b; }
    void setDate(QDateTime d) { date=d; }
    QString setNom(QString name);
    QString toString() const;
    bool operator <(const Requete &r) const;
    bool operator ==(const Requete &r) const;
    static Requete fromString(QString str);

private:
    bool favoris;
    QString nom;
    QString query;
    QDateTime date;
};

#endif // REQUETE_H
